﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Runtime.InteropServices.JavaScript.JSType;
using System.Xml.Linq;

namespace test_6_18
{
    class Adult:Resident
    {
        private string Qualification;
        private string Profession;
        public Adult(string qualification, string profession, int iDcard, string name, string birthday):base( iDcard, name, birthday)
        {
            Qualification = qualification;
            Profession = profession;
        }
        new public string getInfor()
        {
            return base.getInfor()+" Qualification:"+Qualification+" Profession:"+Profession;
        }
    }
}
